﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vit.Common.Providers.DefaultProviders
{
    public class DefaultLocalizeProvider : ILocalizeProvider
    {
        #region ILocalizeProvider Members

        public string Localize(string resourceName, params object[] paras)
        {
            return string.Format(resourceName, paras);
        }

        public string Localize(string area, string resourceName, params object[] paras)
        {
            return string.Format(resourceName, paras);
        }

        public void SaveLocaleResource(string resourceName, string resourceLocaleValue, Models.ILocale locale)
        {
        }

        public void SaveLocaleResource(string area, string resourceName, string resourceLocaleValue, Models.ILocale locale)
        {
        }

        public Models.ILocale GetLocaleByGeoIP()
        {
            return null;
        }

        #endregion

        #region IProvider Members

        public string Name
        {
            get { return "DefaultLocalizeProvider"; }
        }

        #endregion
    }
}
